package com.music.music.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.music.common.core.annotation.Excel;
import com.music.common.core.web.domain.BaseEntity;

/**
 * 音乐与歌手关联表对象 music_singer
 * 
 * @author ruoyi
 * @date 2024-10-22
 */
public class MusicSinger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 音乐编号 */
    @Excel(name = "音乐编号")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long musicId;

    /** 歌手编号 */
    @Excel(name = "歌手编号")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long singerId;

    public MusicSinger() {
    }

    public MusicSinger(Long musicId, Long singerId) {
        this.musicId = musicId;
        this.singerId = singerId;
    }

    public void setMusicId(Long musicId)
    {
        this.musicId = musicId;
    }

    public Long getMusicId() 
    {
        return musicId;
    }
    public void setSingerId(Long singerId) 
    {
        this.singerId = singerId;
    }

    public Long getSingerId() 
    {
        return singerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("musicId", getMusicId())
            .append("singerId", getSingerId())
            .toString();
    }
}
